﻿// Code Behind

$(document).ready(function () {

    $('a[name^=DeleteLink]').click(function (event) {
        
        event.preventDefault();

        if (confirm("Da li zaista želite da obrišete blog post?")) {
            $.post($(this).attr('href'), function (result) {
                if (result == 'success') {
                    location.reload();
                }
            });       
        }
        
        return false;
        
    });
});
